package src;

import java.math.BigDecimal;

/**
 * Created by dell on 2017/7/24.
 */
public class MathTest {
    public static void main(String[] args) {
        BigDecimal f1=new BigDecimal("3.5");
        BigDecimal f2=BigDecimal.valueOf(2.4);
        System.out.println("f1+f2= "+f1.divide(f2,2,BigDecimal.ROUND_HALF_UP));
    }
}
